body {
    /* background: #f2f2f2; */
    background: #282c34;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #042104;
    color: #fff;
    font-family: 'Open Sans', Helvetica, sans-serif;

    animation: bg 10s linear infinite;
}

.loader {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    .dot {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background: #0003; */
        transform: rotate(calc(var(--i) * 18deg));

        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #00ff0a;
            box-shadow: 0 0 10px #00ff0a, 0 0 20px #00ff0a;

            animation: scale 2s linear infinite;
            animation-delay: calc((var(--i) - 20) * 0.1s);
        }
    }
}

@keyframes bg {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes scale {
    0% {
        transform: scale(1);
    }
    80%,
    100% {
        transform: scale(0);
    }
}
